package com.nancy.java_design.mediator.demo1;

/**
 * 抽象的同事类
 */
public abstract class Colleague {
    protected String name;
    // 持有中介者的引用
    protected Mediator mediator;

    public Colleague(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

    public abstract void send(String message);
}
